package com.mobisys.live.service;

import com.mobisys.live.dao.mapper.UserVideoWatchingRecordMapper;
import com.mobisys.live.dao.model.UserVideoWatchingRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserVideoWatchingRecordService {
    @Autowired
    private UserVideoWatchingRecordMapper userVideoWatchingRecordMapper;

    public int insert(UserVideoWatchingRecord record){
        return userVideoWatchingRecordMapper.insert(record);
    }

    public List<UserVideoWatchingRecord> selectByVideoId(String videoId){return userVideoWatchingRecordMapper.selectByVideoId(videoId);}
}

